<div class="account-wrapper" ng-controller="questionEditCtrl">
    <div class="account-body">
        <h4>Edit a Question</h4>

        <form class="form account-form">
            <!--<div class="form-group">-->
            <!--<label class="control-label" for="textinput">displayOrder:</label>-->
            <!--<input class="form-control" ng-model="question.data.displayOrder" required tabindex="5">-->
            <!--</div>-->
            <div class="form-group">
                <label class="control-label" for="textinput">小区名称：<!--community:--></label>
                <input class="form-control" disabled="true " ng-model="question.data.community.communityName" required
                       tabindex="5">
            </div>
            <div class="form-group">
                <label class="control-label" for="textinput">分类：<!--category:--></label>
                <!--<input class="form-control" ng-model="question.category" required tabindex="5">-->
                <select class="form-control" ng-model="question.data.category" required tabindex="3">
                    <option>question</option>
                </select>
            </div>
            <!--<div class="form-group">-->
            <!--<label class="control-label" for="textinput">status:</label>-->
            <!--<input class="form-control" ng-model="question.data.status" required tabindex="5">-->
            <!--</div>-->
            <!--<div class="form-group">-->
            <!--<label class="control-label" for="textinput">tag:</label>-->
            <!--<input class="form-control" ng-model="question.data.tag" required tabindex="5">-->
            <!--</div>-->
            <!--<div class="form-group">-->
            <!--<label class="control-label" for="textinput">browserCount:</label>-->
            <!--<input class="form-control" ng-model="question.data.browserCount" required tabindex="5">-->
            <!--</div>-->
            <div class="form-group">
                <!--<label class="control-label" for="textinput">图片：&lt;!&ndash;category:&ndash;&gt;</label>-->
                <!--<img ng-src={{qimages.url}} id="imgs"  />-->
                <!--<img class="form-control" ng-model="question.data.images" id="imgs">-->
                <slide ng-repeat="img in question.data.images" active="img.active">
                    <img ng-src="{{img}}" style="width: 100px;" onclick="if($(this).width()==100){
                    $('img').width(100);
                    $(this).width(360);
                    }else{
                    $(this).width(100);
                    };">
                </slide>
            </div>
            <div class="form-group">
                <label class="control-label" for="textinput">问题描述：<!--desc:--></label>
                <!--<input class="form-control" ng-model="question.data.desc" required tabindex="5">-->
                <textarea rows="3" cols="20" style="height:146px;" class="form-control" ng-model="question.data.desc" required tabindex="5"></textarea>

            </div>
            <div>
                <label ng-repeat="m in tag.data">
                    <input style="zoom:1.8;margin-left: 10px;vertical-align:middle" type="checkbox" ng-model="chk" ng-click="toggle(chk,m.objId)"/>{{m.value}}
                </label>
            </div>

            <!--<div class="form-group">-->
            <!--<label class="control-label" for="textinput">images:</label>-->
            <!--<textarea rows="2" ng-model="question.data.images" required style="width:100%" tabindex="6"></textarea>-->
            <!--</div>-->
            <!--<div class="form-group">-->
            <!--<label class="control-label" for="textinput">replies:</label>-->
            <!--<textarea rows="2" ng-model="question.data.replies" required style="width:100%" tabindex="6"></textarea>-->
            <!--</div>-->
            <!--<div class="form-group">-->
            <!--<label class="control-label" for="textinput">pollOptions:</label>-->
            <!--<textarea rows="2" ng-model="question.data.pollOptions" required style="width:100%" tabindex="6"></textarea>-->
            <!--</div>-->
            <!--<div class="form-group">-->
            <!--<label class="control-label" for="textinput">pollUserList:</label>-->
            <!--<textarea rows="2" ng-model="question.data.pollUserList" required style="width:100%" tabindex="6"></textarea>-->
            <!--</div>-->


            <!--<div class="form-group">-->
            <!--<label class="control-label" for="textinput">isValid:</label>-->
            <!--<input class="form-control" ng-model="question.isValid" required tabindex="5">-->
            <!--</div>-->
            <!--<div class="form-group">-->
            <!--<label class="control-label" for="textinput">createdBy:</label>-->
            <!--<input class="form-control" ng-model="question.createdBy" required tabindex="5">-->
            <!--</div>-->
            <!--<div class="form-group">-->
            <!--<label class="control-label" for="textinput">dateCreated:</label>-->
            <!--<input class="form-control" ng-model="question.dateCreated" required tabindex="5">-->
            <!--</div>-->
            <div class="form-group">
                <a ng-click="gotoQuestionListPage()" class="btn btn-xs btn-primary">cancel</a>
                <a ng-click="updateQuestion()" class="btn btn-xs btn-primary">Update the Question</a>
            </div>
        </form>
    </div>
</div>